package com.flying.invest.invest.model;

import java.util.Date;

import com.flying.framework.data.Data;
import com.flying.common.util.Codes;
import com.flying.framework.annotation.Param;
import com.flying.framework.data.DataSerializable;
import com.flying.framework.metadata.Meta;

@SuppressWarnings("serial")
@Meta(id="i_investment_answers",title="投资答卷", table="i_investment_answers", primaryKeys={"answer_id"})
public class InvestmentAnswers extends Data implements DataSerializable {
	public final static String ENTITY_NAME = "i_investment_answers";
	
	public final static String ANSWER_ID = "answer_id";
	public final static String INVEST_ID = "invest_id";
	public final static String SURVEY_ID = "survey_id";
	public final static String QUESTION_ID = "question_id";
	public final static String USER_ID = "user_id";
	public final static String QUESTION = "question";
	public final static String ANSWER = "answer";
	public final static String CREATOR = "creator";
	public final static String CREATE_TIME = "create_time";
	public final static String UPDATOR = "updator";
	public final static String UPDATE_TIME = "update_time";
	
	
	@Param(value=ANSWER_ID,   required=true,   maxlength=0,	desc="ID" , generator=Codes.AUTO_INCREMENT)
	private Long answerId;
	
	@Param(value=INVEST_ID,   required=true,   maxlength=0,	desc="投资ID" )
	private Long investId;
	
	@Param(value=SURVEY_ID,   required=true,   maxlength=0,	desc="调查ID" )
	private Long surveyId;
	
	@Param(value=QUESTION_ID,   required=true,   maxlength=0,	desc="问题ID" )
	private Long questionId;
	
	@Param(value=USER_ID,   required=true,   maxlength=0,	desc="所属用户" )
	private Long userId;
	
	@Param(value=QUESTION,   required=true,   maxlength=200,	desc="问题" )
	private String question;
	
	@Param(value=ANSWER,   required=false,   maxlength=200,	desc="答案" )
	private String answer;
	
	@Param(value=CREATOR,   required=false,   maxlength=40,	desc="创建人" )
	private String creator;
	
	@Param(value=CREATE_TIME,   required=false,   maxlength=0,	desc="创建时间" )
	private Date createTime;
	
	@Param(value=UPDATOR,   required=false,   maxlength=40,	desc="修改人" )
	private String updator;
	
	@Param(value=UPDATE_TIME,   required=false,   maxlength=0,	desc="修改时间" )
	private Date updateTime;
	
	
	public Long getAnswerId() {
		return this.answerId;
	}
	
	public void setAnswerId(Long answerId) {
		this.answerId = answerId;
	}
	
	public Long getInvestId() {
		return this.investId;
	}
	
	public void setInvestId(Long investId) {
		this.investId = investId;
	}
	
	public Long getSurveyId() {
		return this.surveyId;
	}
	
	public void setSurveyId(Long surveyId) {
		this.surveyId = surveyId;
	}
	
	public Long getQuestionId() {
		return this.questionId;
	}
	
	public void setQuestionId(Long questionId) {
		this.questionId = questionId;
	}
	
	public Long getUserId() {
		return this.userId;
	}
	
	public void setUserId(Long userId) {
		this.userId = userId;
	}
	
	public String getQuestion() {
		return this.question;
	}
	
	public void setQuestion(String question) {
		this.question = question;
	}
	
	public String getAnswer() {
		return this.answer;
	}
	
	public void setAnswer(String answer) {
		this.answer = answer;
	}
	
	public String getCreator() {
		return this.creator;
	}
	
	public void setCreator(String creator) {
		this.creator = creator;
	}
	
	public Date getCreateTime() {
		return this.createTime;
	}
	
	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}
	
	public String getUpdator() {
		return this.updator;
	}
	
	public void setUpdator(String updator) {
		this.updator = updator;
	}
	
	public Date getUpdateTime() {
		return this.updateTime;
	}
	
	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}
	

}